<?php
class EmailprobeController extends AppController {

	var $uses = array('User');
    
    public function beforeFilter() {
        parent::beforeFilter();
        $this->Auth->allow('*');
    }

	public function index() {
	}
	
	public function send($id) {
		$user = $this->User->findById($id);
	
		App::uses('CakeEmail', 'Network/Email');
		$email = new CakeEmail();
		$email->viewVars($user);
		$email->from(array('no-reply@creativos.co' => 'Creativos.co'));
		//$email->to('marcohern@gmail.com');
		$email->to('giovanicas@gmail.com');
		$email->subject('Creativos.co - Activa tu Cuenta');
		$email->template('register');
		$email->emailFormat('html');
		$email->send();
	}
}
?>